package com.itheima.myanno4;

/**
 * @program: Myset
 * @description:
 * @author: xuejingjing
 * @create: 2021-06-30 20:58
 **/
public class StudentDemo {
    public static void main(String[] args) throws ClassNotFoundException {
        //获取到Student类的字节码文件对象
        Class  aClass = Class.forName("com.itheima.myanno4.Student");
        //获取注解,判断Student类上面有没有@Anno注解
        boolean annotationPresent = aClass.isAnnotationPresent(Anno.class);
        System.out.println(annotationPresent);

    }



}
